<!-- THE MAIN CONTENT CLASS-->
<div class='mainContainer home'>
<div>
  <h2 class='differentAlign'>Upcoming <span class='differentHeading'>Events</span></h2>

  <div class='spacer'>&nbsp;</div>
  <div class="pagination">
    <?php
      $this->widget('CLinkPager',array(
        'pages'=>$pages,
        "cssFile" => false,
        "header" => "",
      ));
    ?>
  </div>
  <div class='spacer'>&nbsp;</div>

  <?php foreach($articles as $article){ ?>
  <div class='news'> <!-- Format the news view -->
    <div>
      <h3><a href='<?php echo bu("articles/view/".$article->id); ?>'><?php echo $article->subject; ?></a></h3>
      <div class='date'><?php echo Helpers::customDate($article->created_at); ?></div>
      <p><?php echo strip_tags(substr($article->content,0,540)); echo " (<a href='".bu("articles/view/".$article->id)."'>Read more</a>)";?></p>
    </div>
  </div>
  <?php } ?>

  <div class='spacer'>&nbsp;</div>
  <div class="pagination">
    <?php
      $this->widget('CLinkPager',array(
        'pages'=>$pages,
        "cssFile" => false,
        "header" => "",
      ));
    ?>
  </div>
<div class='spacer'>&nbsp;</div>


</div>

<div class='rightPane'>
  <div>
  <h2>Our <span class='differentHeading'>Banner</span></h2>
  <a href="<?php echo bu('ads/new'); ?>" class="ads empty"><img src="<?php echo bu() ?>/images/Banner_Ads_1.gif" /></a>
  <a href="<?php echo bu('ads/new'); ?>" class="ads empty"><img src="<?php echo bu() ?>/images/Banner_Ads_1.gif" /></a>
  <a href="<?php echo bu('ads/new'); ?>" class="ads empty"><img src="<?php echo bu() ?>/images/Banner_Ads_1.gif" /></a>
  </div>
</div>
</div>